<script>
    $(function(){
        $("body").on('click',".alert",function(){
            console.log("tap");
            $(this).remove();
        });
    })
</script>
<div class="alert-container">
    <switch name="alert.status">
        <case value="0">
            <div class="alert alert-danger" style="text-align:center;">{$alert.msg}</div>
        </case>
        <case value="1">
            <div class="alert alert-success" style="text-align:center;">{$alert.msg}</div>
        </case>
    </switch>
</div>
